package com.wechat.order.dataobject;


import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by zzy on 2017/12/27.
 */

/*CREATE TABLE USER(
        uid INT AUTO_INCREMENT PRIMARY KEY,
        username VARCHAR(20) DEFAULT NULL,
        PASSWORD VARCHAR(20) DEFAULT NULL,
        nickname VARCHAR(20) DEFAULT NULL,
        email VARCHAR(30) DEFAULT NULL,
        state INT(11) DEFAULT NULL,
        CODE VARCHAR(64) DEFAULT NULL
        )
        ENGINE=INNODB DEFAULT CHARSET=utf8*/
@Table(name = "user")
@Entity
@Data
@Slf4j
public class userInfo {

    @Id
    private String uid;

    private String username;

    private String password;

    private String nickname;

    private String email;

    private int state;

    private String code;


}
